package com.yuntu.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Position {

    /**
     * 职位id
     */
    @TableId(type = IdType.AUTO)
    private Integer positionId;
    /**
     * 职位名称
     */
    private String positionName;
    /**
     * 部门id
     */
    private Integer departmentId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /**
     * 是否删除 0否1删
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;
}
